package com.iss.ljx.user.repository;

import com.iss.ljx.mybatis.entity.PtUserEntity;
import com.iss.ljx.mybatis.flexigrid.PagingBean;
import com.iss.ljx.mybatis.ztree.ZtreeEntity;
import com.iss.ljx.user.entity.SearchUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 流星
 */
@Mapper
public interface UserInfoDao {
    List<PtUserEntity> queryUserInfoList(@Param("search") SearchUserEntity search);
    void deleteUserInfoById(@Param("id") String id);
    List<PtUserEntity> getUserInfolistByPage(@Param("search") SearchUserEntity search, @Param("paging") PagingBean paging);
    Integer getUserInfolistTotal(@Param("search")SearchUserEntity search);
    List<ZtreeEntity> queryRoleZtreeListAll();
    List<String> queryRoleZtreeListByUserId(@Param("userUuid")String userUuid);
    void insertRoleRefUser(@Param("roleId") String roleId, @Param("userUuid") String userUuid);
    void delRoleByUserId(@Param("userUuid") String userUuid);

    String getUserDepId(String depName);
}
